﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIA.Presentation.Contracts;
using VIA.Presentation;
using VIA.Project.Presentation.ViewModel.Inspection;
using VIA.SiMoJi.Domain.Inspection;
using VIA.Integration.Presentation;using VIA.SiMoJi.Domain.Electronics;
using VIA.SiMoJi.Domain.Option;

namespace VIA.SiMoJi.Presentation.ViewModel
{
    [ViewModel(typeof(INGXiaLiaoStationOptionView))]
    internal class NGXiaLiaoStationOptionViewModel : EditorViewModel<INGXiaLiaoStationOptionView, NGXiaLiaoStationOption>
    {
        private CylinderDebugViewModel cM_无杆缸;
        private CylinderDebugViewModel cM_定位缸;
        public CylinderDebugViewModel CM_无杆缸 { get => cM_无杆缸; set => SetProperty(ref cM_无杆缸, value); }
        public CylinderDebugViewModel CM_定位缸 { get => cM_定位缸; set => SetProperty(ref cM_定位缸, value); }

        public NGXiaLiao Station { get; }

        public NGXiaLiaoStationOptionViewModel(IServiceProvider service, Inspector inspector) : base(service)
        {
            Station = inspector.NGXiaLiao;
            CM_定位缸 = new(Station.C_定位缸) { Name= "抽屉定位缸" };
            CM_无杆缸 = new(Station.C_无杆缸) { Name= "无杆缸" };
        }
    }
}
